home *** CD-ROM | disk | FTP | other *** search
/ Dynamic HTML Construction Kit / Dynamic HTML Construction Kit.iso / source_code / dhtmlunl / dhtml.exe / CD Content / Chap15 / dun15_3.txt < prev    next >
Encoding:
Text File  |  1997-12-18  |  1.8 KB  |  59 lines

  1. <HTML>
  2.  
  3. <HEAD>
  4.  
  5.   <TITLE>Exposing Page Elements in IE4</TITLE>
  6.  
  7. </HEAD>
  8.  
  9.  
  10.  
  11. <BODY BGCOLOR=white>
  12.  
  13.   <BLOCKQUOTE>
  14.  
  15.  
  16.  
  17.   <IMG NAME=arrow SRC="arrow.gif" ALIGN=left>
  18.  
  19.  
  20.  
  21.   <DIV ID=banner STYLE="position: absolute; left: 72; top: 15;">
  22.  
  23.     <FONT FACE="Arial, Helvetica" SIZE=+2>
  24.  
  25.         Exposing Page Elements in IE4
  26.  
  27.     </FONT>
  28.  
  29.   </DIV>
  30.  
  31.  
  32.  
  33.   <BR><BR>
  34.  
  35.   <P>The <TT>DIV</TT> element is reflected as both
  36.  
  37.   <TT>document.all['banner']</TT> and <TT>document.all.banner</TT> in
  38.  
  39.   IE4. Its reflected attributes include:</P>
  40.  
  41.  
  42.  
  43.   <BLOCKQUOTE>
  44.  
  45.   <SCRIPT>
  46.  
  47.     document.writeln("<B>tagName:</B> " + document.all['banner'].tagName +
  48.  
  49.                      "<BR>");
  50.  
  51.     document.writeln("<B>id:</B> " + document.all.banner.id + "<BR>");
  52.  
  53.   </SCRIPT>
  54.  
  55.   </BLOCKQUOTE>
  56.  
  57.  
  58.  
  59.   <P>The <TT>IMG</TT> element is reflected as <TT>document.arrow</TT>,
  60.  
  61.   <TT>document.all.arrow</TT>, <TT>document.all['arrow']</TT> and
  62.  
  63.   <TT>document.images['arrow']</TT> in IE4. Its reflected attributes
  64.  
  65.   include:</P>
  66.  
  67.  
  68.  
  69.   <BLOCKQUOTE>
  70.  
  71.   <SCRIPT>
  72.  
  73.      document.writeln("<B>tagName:</B> " + document.all['arrow'].tagName +
  74.  
  75.                       "<BR>");
  76.  
  77.      document.writeln("<B>name:</B> " + document.images['arrow'].name +
  78.  
  79.                       "<BR>");
  80.  
  81.      document.writeln("<B>src:</B> " + document.all.arrow.src + "<BR>");
  82.  
  83.   </SCRIPT>
  84.  
  85.   </BLOCKQUOTE>
  86.  
  87.  
  88.  
  89.   <P>The <TT>FONT</TT> element is reflected as <TT>document.all[7]</TT>
  90.  
  91.   in IE4. Its reflected attributes include:</P>
  92.  
  93.  
  94.  
  95.   <BLOCKQUOTE>
  96.  
  97.   <SCRIPT>
  98.  
  99.     document.writeln("<B>tagName:</B> " + document.all[7].tagName + "<BR>");
  100.  
  101.     document.writeln("<B>size:</B> " + document.all[7].size + "<BR>");
  102.  
  103.     document.writeln("<B>face:</B> " + document.all[7].face + "<BR>");
  104.  
  105.   </SCRIPT>
  106.  
  107.   </BLOCKQUOTE>
  108.  
  109.  
  110.  
  111.   </BLOCKQUOTE>
  112.  
  113. </BODY>
  114.  
  115. </HTML>
  116.  
  117.